import java.applet.Applet; import java.awt.Graphics; public class MyApplet extends Applet { public void paint(Graphics g) { g.drawOval(0,0,200,200); g.drawOval(50,50,100,100); } } //<applet code=MyApplet width=200 height=200 ></applet>
import java.applet.Applet; import java.awt.Graphics; public class MyApplet extends Applet { public void paint(Graphics g) { for(int i=0;i<10;i++) g.drawOval(i*10,i*10,200-i*20,200-i*20); } } //<applet code=MyApplet width=200 height=200 ></applet>
import java.applet.Applet; import java.awt.Graphics; public class MyApplet extends Applet { public void paint(Graphics g) { g.fillRect(5,5,90,90); g.fillRect(105,5,90,90); g.fillRect(5,105,90,90); g.fillRect(105,105,90,90); } } //<applet code=MyApplet width=200 height=200 ></applet>
import java.applet.Applet; import java.awt.Graphics; public class MyApplet extends Applet { public void paint(Graphics g) { g.drawOval(0,0,200,200); g.drawArc(30,30,140,140,180,180); g.fillOval(50,50,30,30); g.fillOval(120,50,30,30); } } //<applet code=MyApplet width=200 height=200 ></applet>